﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TripAdd.aspx.cs" Inherits="Omabar.CMS.CMS.TripAdd" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" type="text/css" href="../CSS/bootstrap_min.css" media="all" />
    <link rel="stylesheet" type="text/css" href="../CSS/bootstrap_responsive_min.css" media="all" />
    <link rel="stylesheet" type="text/css" href="../CSS/Style.css" media="all" />
    <link rel="stylesheet" type="text/css" href="../CSS/todc_bootstrap.css" media="all" />
    <link rel="stylesheet" type="text/css" href="../CSS/Themes.css" media="all" />
    <link rel="stylesheet" type="text/css" href="../CSS/inside.css" media="all" />
    <script type="text/javascript" src="../JavaScript/jquery.1.8.3.js"></script>
    <script type="text/javascript" src="../JavaScript/jquery.cookie.js"></script>
    <script type="text/javascript" src="../JavaScript/bootstrap.js"></script>
    <script type="text/javascript" src="../JavaScript/jquery_validate_min.js"></script>
    <script type="text/javascript" src="../JavaScript/jquery_validate_methods.js"></script>
    <script type="text/javascript" src="../JavaScript/jquery_form_min.js"></script>
    <script type="text/javascript" src="../JavaScript/inside.js"></script>
    <title></title>
    <link rel="shortcut icon" href="../favicon.ico" />
    <!--[if IE 7]><link href="../CSS/font_awesome_ie7.css" rel="stylesheet" /><![endif]-->
    <!--[if lte IE 9]><script src="../JavaScript/watermark.js"></script><![endif]-->
</head>
<body>
    <div id="main">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <div class="span10">
                                <h3><i class="icon-edit"></i>请填写行程信息</h3>
                            </div>
                            <div class="span2"><a class="btn" href="Javascript:window.history.go(-1)">返回</a></div>
                        </div>

                        <div class="box-content">
                            <form action="../Handler/TripAdd.ashx" method="post" class="form-horizontal form-validate">
                                <div class="control-group">
                                    <label for="TRIP_NAME" class="control-label">行程名称：</label>
                                    <div class="controls">
                                        <input type="text" name="TRIP_NAME" id="TRIP_NAME" style="width: 685px;" data-rule-required="true" /><span class="maroon">*</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="TRIP_DES" class="control-label">行程描述：</label>
                                    <div class="controls">
                                        <textarea name="TRIP_DES" id="content" style="width: 700px; height: 300px; visibility: hidden;" data-rule-required="true"></textarea>
                                    </div>
                                    <script>var editor1;</script>
                                    <script src="../KindEditor/kindeditor-min.js"></script>
                                    <script src="../KindEditor/kindeditor.config.js"></script>
                                    <script src="../KindEditor/kindeditor.config-upfile.js"></script>
                                </div>
                                <div class="control-group">
                                    <label for="picurl" class="control-label">航班信息：</label>
                                    <div class="controls">
                                        <table class="dataTable-mini" id="flight_table">
                                        </table>
                                        <button id="btnAddFlight" type="button" rel="flight_table" class="btn add-on">添加</button><span style="color: red;" class="help-inline">最多添加9个</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="picurl" class="control-label">行程图片：</label>
                                    <div class="controls">
                                        <table class="dataTable-mini" id="photo_table">
                                        </table>
                                        <button id="btnAddPhoto" type="button" rel="photo_table" class="btn add-on">添加</button><span style="color: red;" class="help-inline">最多添加9个</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="picurl" class="control-label">酒店信息：</label>
                                    <div class="controls">
                                        <table class="dataTable-mini" id="hotel_table">
                                        </table>
                                        <button id="btnAddHotel" type="button" rel="hotel_table" class="btn add-on">添加</button><span style="color: red;" class="help-inline">最多添加9个</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="picurl" class="control-label">餐饮信息：</label>
                                    <div class="controls">
                                        <table class="dataTable-mini" id="food_table">
                                        </table>
                                        <button id="btnAddFood" type="button" rel="food_table" class="btn add-on">添加</button><span style="color: red;" class="help-inline">最多添加9个</span>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">保存</button>
                                    <a class="btn" href="Javascript:window.history.go(-1)">取消</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--图片选择器-->
        <div id="photoModel" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"><i class="icon-table"></i>选择图片集</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row-fluid">
                            图片标题：
                            <input name="photoKey" id="photoKey" type="text" style="margin-bottom: 0px;" class="input-medium" placeholder="输入标题进行查找" />
                            <button type="button" class="btn" id="btnFindPhoto"><strong>查找</strong></button>
                        </div>
                        <p></p>
                        <div class="row-fluid">
                            <input type="checkbox" id="chkallPhoto" name="chkallPhoto" />
                            全选　共有 <span class="red" id="count_num_photo">0</span> 条符合条件
                            <button type="button" class="btn btn-mini" id="p_page_photo"><strong>上一页</strong></button>
                            <span id="p_page_str">第1页/共1页</span>
                            <button type="button" class="btn btn-mini" id="n_page_photo"><strong>下一页</strong></button>
                            <ul class="unstyled list-li-border" id="data-photo-list"></ul>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                    </div>
                    <script type="text/javascript">
                        $(document).ready(function () {
                            var _photodata_table_id;
                            var _isosophoto = false;
                            $("#chkallPhoto").click(function () {
                                var $idsCheck = $("#data-photo-list input[name='check']")
                                var $this = $(this);
                                if ($this.attr("checked")) {
                                    $idsCheck.attr("checked", true);
                                } else {
                                    $idsCheck.attr("checked", false);
                                }
                                $idsCheck.each(function () {
                                    _tr($(this));
                                });

                            });
                            $("#btnFindPhoto").click(function () {
                                _isosophoto = true;
                                $("#btnFindPhoto").attr("disabled", ""); _page(1)
                            });
                            $("#data-photo-list input[name='check']").live("click", function () { _tr($(this)); });
                            var _tr = function (_t) {
                                var $this = _t;
                                var $title = $this.attr("t");
                                var $img = $this.attr("img");
                                var $id = $this.val();
                                var $selecttr = $("#" + _photodata_table_id + "tr" + $id + "");
                                if ($this.attr("checked")) {
                                    if ($selecttr.length == 0 && $("#" + _photodata_table_id + " tr").length < 9) {
                                        var t = (_photodata_table_id == "photo_table") ? "photo[0][]" : "photo[1][]";
                                        var _trtmp = "<tr id='" + _photodata_table_id + "tr" + $id + "'><td><input type='hidden' name='" + t + "'  value='" + $id + "' /><img src='" + $img + "' style='width:40px;height:30px;margin-right:20px;'/>" + $title + "</td><td><a href='javascript:void(0)' class='btn btn-mini del'><i class='icon-remove'></i></a></td></tr>";
                                        $("#" + _photodata_table_id + "").append(_trtmp);
                                    }

                                } else {
                                    $selecttr.remove();
                                }
                            }
                            //删除
                            $("table.dataTable-mini .del").live("click", function () {
                                $(this).parent().parent().remove();
                            });
                            $("#btnAddPhoto").click(function (e) {
                                e.preventDefault();
                                _photodata_table_id = $(this).attr("rel");
                                $('#photoModel').modal('show');
                                $("#chkallPhoto").attr("checked", false);
                                _page(1);
                            });
                            $("#p_page_photo").click(function () {
                                if (_this_page - 1 > 0) {
                                    _this_page--;
                                    _page(_this_page);
                                }
                            });
                            $("#n_page_photo").click(function () {
                                if (_this_page + 1 <= _this_page_count) {
                                    _this_page++;
                                    _page(_this_page);
                                }
                            });
                            var _this_page = 1;//当前页
                            var _this_page_count = 0;//总页数
                            var _page = function (_index) {
                                var photoKey;
                                if (_isosophoto) {
                                    photoKey = $("#photoKey").val();
                                }

                                $.get("../Handler/PhotoRead.ashx",
                                    { "key": photoKey, "page": _index, },
                                    function (data, textStatus) {
                                        $("#data-photo-list").html("");
                                        $.each(data.list, function (index, item) {
                                            var _li_tmp = '<li><label><input type="checkbox" name="check" img="' + item.PHOTO_URL + '"  t="' + item.PHOTO_NAME + '" value="' + item.PHOTO_ID + '" /><img src="' + item.PHOTO_URL + '" style="width:40px;height:30px;margin:0 20px" />' + item.PHOTO_NAME + '</label></li>';
                                            $("#data-photo-list").append(_li_tmp);
                                        });

                                        _this_page_count = data.count;
                                        $("#count_num_photo").text(data.total);
                                        $("#p_page_str").text("第" + _this_page + "页/共" + _this_page_count + "页");
                                        $("#btnFindPhoto").removeAttr("disabled")
                                    }, "json");
                            }
                        })
                    </script>
                </div>
            </div>
        </div>
        <!--航班选择器-->
        <div id="flightModel" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"><i class="icon-table"></i>选择航班信息</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row-fluid">
                            航班号：
                            <input name="flightKey" id="flightKey" type="text" style="margin-bottom: 0px;" class="input-medium" placeholder="输入标题进行查找" />
                            <button type="button" class="btn" id="btnFindFlight"><strong>查找</strong></button>
                        </div>
                        <p></p>
                        <div class="row-fluid">
                            <input type="checkbox" id="chkallFlight" name="chkallFlight" />
                            全选　共有 <span class="red" id="count_num_flight">0</span> 条符合条件
                            <button type="button" class="btn btn-mini" id="p_page_flight"><strong>上一页</strong></button>
                            <span id="Span1">第1页/共1页</span>
                            <button type="button" class="btn btn-mini" id="n_page_flight"><strong>下一页</strong></button>
                            <ul class="unstyled list-li-border" id="data-flight-list"></ul>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                    </div>
                    <script type="text/javascript">
                        $(document).ready(function () {
                            var _flightdata_table_id;
                            var _isosoflight = false;
                            $("#chkallFlight").click(function () {
                                var $idsCheck = $("#data-flight-list input[name='check']")
                                var $this = $(this);
                                if ($this.attr("checked")) {
                                    $idsCheck.attr("checked", true);
                                } else {
                                    $idsCheck.attr("checked", false);
                                }
                                $idsCheck.each(function () {
                                    _tr($(this));
                                });

                            });
                            $("#btnFindFlight").click(function () {
                                _isosoflight = true;
                                $("#btnFindFlight").attr("disabled", ""); _page(1)
                            });
                            $("#data-flight-list input[name='check']").live("click", function () { _tr($(this)); });
                            var _tr = function (_t) {
                                var $this = _t;
                                var $title = $this.attr("t");
                                var $img = $this.attr("img");
                                var $id = $this.val();
                                var $selecttr = $("#" + _flightdata_table_id + "tr" + $id + "");
                                if ($this.attr("checked")) {
                                    if ($selecttr.length == 0 && $("#" + _flightdata_table_id + " tr").length < 9) {
                                        var t = (_flightdata_table_id == "flight_table") ? "flight[0][]" : "flight[1][]";
                                        var _trtmp = "<tr id='" + _flightdata_table_id + "tr" + $id + "'><td><input type='hidden' name='" + t + "'  value='" + $id + "' />" + $title + "</td><td><a href='javascript:void(0)' class='btn btn-mini del'><i class='icon-remove'></i></a></td></tr>";
                                        $("#" + _flightdata_table_id + "").append(_trtmp);
                                    }

                                } else {
                                    $selecttr.remove();
                                }
                            }
                            //删除
                            $("table.dataTable-mini .del").live("click", function () {
                                $(this).parent().parent().remove();
                            });
                            $("#btnAddFlight").click(function (e) {
                                e.preventDefault();
                                _flightdata_table_id = $(this).attr("rel");
                                $('#flightModel').modal('show');
                                $("#chkallFlight").attr("checked", false);
                                _page(1);
                            });
                            $("#p_page_flight").click(function () {
                                if (_this_page - 1 > 0) {
                                    _this_page--;
                                    _page(_this_page);
                                }
                            });
                            $("#n_page_flight").click(function () {
                                if (_this_page + 1 <= _this_page_count) {
                                    _this_page++;
                                    _page(_this_page);
                                }
                            });
                            var _this_page = 1;//当前页
                            var _this_page_count = 0;//总页数
                            var _page = function (_index) {
                                var flightKey;
                                if (_isosoflight) {
                                    flightKey = $("#flightKey").val();
                                }

                                $.get("../Handler/FlightRead.ashx",
                                    { "key": flightKey, "page": _index, },
                                    function (data, textStatus) {
                                        $("#data-flight-list").html("");
                                        $.each(data.list, function (index, item) {
                                            var _li_tmp = '<li><label><input style="margin-right:20px;" type="checkbox" name="check"  t="' + item.FLIGHT_CODE + '" value="' + item.FLIGHT_ID + '" />' + item.FLIGHT_CODE + '<span>【' + item.FLIGHT_CITY_START + '<-->' + item.FLIGHT_CITY_END + '】</span></label></li>';
                                            $("#data-flight-list").append(_li_tmp);
                                        });

                                        _this_page_count = data.count;
                                        $("#count_num_flight").text(data.total);
                                        $("#p_page_str").text("第" + _this_page + "页/共" + _this_page_count + "页");
                                        $("#btnFindFlight").removeAttr("disabled")
                                    }, "json");
                            }
                        })
                    </script>
                </div>
            </div>
        </div>
        <!--酒店选择器-->
        <div id="hotelModel" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"><i class="icon-table"></i>选择酒店信息</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row-fluid">
                            酒店名称：
                            <input name="hotelKey" id="hotelKey" type="text" style="margin-bottom: 0px;" class="input-medium" placeholder="输入标题进行查找" />
                            <button type="button" class="btn" id="btnFindHotel"><strong>查找</strong></button>
                        </div>
                        <p></p>
                        <div class="row-fluid">
                            <input type="checkbox" id="chkallHotel" name="chkallHotel" />
                            全选　共有 <span class="red" id="count_num_hotel">0</span> 条符合条件
                            <button type="button" class="btn btn-mini" id="p_page_hotel"><strong>上一页</strong></button>
                            <span id="Span2">第1页/共1页</span>
                            <button type="button" class="btn btn-mini" id="n_page_hotel"><strong>下一页</strong></button>
                            <ul class="unstyled list-li-border" id="data-hotel-list"></ul>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                    </div>
                    <script type="text/javascript">
                        $(document).ready(function () {
                            var _hoteldata_table_id;
                            var _isosohotel = false;
                            $("#chkallHotel").click(function () {
                                var $idsCheck = $("#data-hotel-list input[name='check']")
                                var $this = $(this);
                                if ($this.attr("checked")) {
                                    $idsCheck.attr("checked", true);
                                } else {
                                    $idsCheck.attr("checked", false);
                                }
                                $idsCheck.each(function () {
                                    _tr($(this));
                                });

                            });
                            $("#btnFindHotel").click(function () {
                                _isosohotel = true;
                                $("#btnFindHotel").attr("disabled", ""); _page(1)
                            });
                            $("#data-hotel-list input[name='check']").live("click", function () { _tr($(this)); });
                            var _tr = function (_t) {
                                var $this = _t;
                                var $title = $this.attr("t");
                                var $img = $this.attr("img");
                                var $id = $this.val();
                                var $selecttr = $("#" + _hoteldata_table_id + "tr" + $id + "");
                                if ($this.attr("checked")) {
                                    if ($selecttr.length == 0 && $("#" + _hoteldata_table_id + " tr").length < 9) {
                                        var t = (_hoteldata_table_id == "hotel_table") ? "hotel[0][]" : "hotel[1][]";
                                        var _trtmp = "<tr id='" + _hoteldata_table_id + "tr" + $id + "'><td><input type='hidden' name='" + t + "'  value='" + $id + "' />" + $title + "</td><td><a href='javascript:void(0)' class='btn btn-mini del'><i class='icon-remove'></i></a></td></tr>";
                                        $("#" + _hoteldata_table_id + "").append(_trtmp);
                                    }

                                } else {
                                    $selecttr.remove();
                                }
                            }
                            //删除
                            $("table.dataTable-mini .del").live("click", function () {
                                $(this).parent().parent().remove();
                            });
                            $("#btnAddHotel").click(function (e) {
                                e.preventDefault();
                                _hoteldata_table_id = $(this).attr("rel");
                                $('#hotelModel').modal('show');
                                $("#chkallHotel").attr("checked", false);
                                _page(1);
                            });
                            $("#p_page_hotel").click(function () {
                                if (_this_page - 1 > 0) {
                                    _this_page--;
                                    _page(_this_page);
                                }
                            });
                            $("#n_page_hotel").click(function () {
                                if (_this_page + 1 <= _this_page_count) {
                                    _this_page++;
                                    _page(_this_page);
                                }
                            });
                            var _this_page = 1;//当前页
                            var _this_page_count = 0;//总页数
                            var _page = function (_index) {
                                var hotelKey;
                                if (_isosohotel) {
                                    hotelKey = $("#hotelKey").val();
                                }

                                $.get("../Handler/HotelRead.ashx",
                                    { "key": hotelKey, "page": _index, },
                                    function (data, textStatus) {
                                        $("#data-hotel-list").html("");
                                        $.each(data.list, function (index, item) {
                                            var _li_tmp = '<li><label><input style="margin-right:20px;" type="checkbox" name="check"  t="' + item.HOTEL_NAME + '" value="' + item.HOTEL_ID + '" />' + item.HOTEL_NAME + '</label></li>';
                                            $("#data-hotel-list").append(_li_tmp);
                                        });

                                        _this_page_count = data.count;
                                        $("#count_num_hotel").text(data.total);
                                        $("#p_page_str").text("第" + _this_page + "页/共" + _this_page_count + "页");
                                        $("#btnFindHotel").removeAttr("disabled")
                                    }, "json");
                            }
                        })
                    </script>
                </div>
            </div>
        </div>
        <!--餐饮选择器-->
        <div id="foodModel" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title"><i class="icon-table"></i>选择餐饮信息</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row-fluid">
                            餐饮名称：
                            <input name="foodKey" id="foodKey" type="text" style="margin-bottom: 0px;" class="input-medium" placeholder="输入标题进行查找" />
                            <button type="button" class="btn" id="btnFindFood"><strong>查找</strong></button>
                        </div>
                        <p></p>
                        <div class="row-fluid">
                            <input type="checkbox" id="chkallFood" name="chkallFood" />
                            全选　共有 <span class="red" id="count_num_food">0</span> 条符合条件
                            <button type="button" class="btn btn-mini" id="p_page_food"><strong>上一页</strong></button>
                            <span id="Span3">第1页/共1页</span>
                            <button type="button" class="btn btn-mini" id="n_page_food"><strong>下一页</strong></button>
                            <ul class="unstyled list-li-border" id="data-food-list"></ul>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                    </div>
                    <script type="text/javascript">
                        $(document).ready(function () {
                            var _fooddata_table_id;
                            var _isosofood = false;
                            $("#chkallFood").click(function () {
                                var $idsCheck = $("#data-food-list input[name='check']")
                                var $this = $(this);
                                if ($this.attr("checked")) {
                                    $idsCheck.attr("checked", true);
                                } else {
                                    $idsCheck.attr("checked", false);
                                }
                                $idsCheck.each(function () {
                                    _tr($(this));
                                });

                            });
                            $("#btnFindFood").click(function () {
                                _isosofood = true;
                                $("#btnFindFood").attr("disabled", ""); _page(1)
                            });
                            $("#data-food-list input[name='check']").live("click", function () { _tr($(this)); });
                            var _tr = function (_t) {
                                var $this = _t;
                                var $title = $this.attr("t");
                                var $img = $this.attr("img");
                                var $id = $this.val();
                                var $selecttr = $("#" + _fooddata_table_id + "tr" + $id + "");
                                if ($this.attr("checked")) {
                                    if ($selecttr.length == 0 && $("#" + _fooddata_table_id + " tr").length < 9) {
                                        var t = (_fooddata_table_id == "food_table") ? "food[0][]" : "food[1][]";
                                        var _trtmp = "<tr id='" + _fooddata_table_id + "tr" + $id + "'><td><input type='hidden' name='" + t + "'  value='" + $id + "' />" + $title + "</td><td><a href='javascript:void(0)' class='btn btn-mini del'><i class='icon-remove'></i></a></td></tr>";
                                        $("#" + _fooddata_table_id + "").append(_trtmp);
                                    }

                                } else {
                                    $selecttr.remove();
                                }
                            }
                            //删除
                            $("table.dataTable-mini .del").live("click", function () {
                                $(this).parent().parent().remove();
                            });
                            $("#btnAddFood").click(function (e) {
                                e.preventDefault();
                                _fooddata_table_id = $(this).attr("rel");
                                $('#foodModel').modal('show');
                                $("#chkallFood").attr("checked", false);
                                _page(1);
                            });
                            $("#p_page_food").click(function () {
                                if (_this_page - 1 > 0) {
                                    _this_page--;
                                    _page(_this_page);
                                }
                            });
                            $("#n_page_food").click(function () {
                                if (_this_page + 1 <= _this_page_count) {
                                    _this_page++;
                                    _page(_this_page);
                                }
                            });
                            var _this_page = 1;//当前页
                            var _this_page_count = 0;//总页数
                            var _page = function (_index) {
                                var foodKey;
                                if (_isosofood) {
                                    foodKey = $("#foodKey").val();
                                }

                                $.get("../Handler/FoodRead.ashx",
                                    { "key": foodKey, "page": _index, },
                                    function (data, textStatus) {
                                        $("#data-food-list").html("");
                                        $.each(data.list, function (index, item) {
                                            var _li_tmp = '<li><label><input style="margin-right:20px;" type="checkbox" name="check"  t="【早餐:' + item.BREAKFAST + '】 【午餐:' + item.LUNCH + '】 【晚餐:' + item.DINNER + '】" value="' + item.FOOD_ID + '" />' + '【早餐:' + item.BREAKFAST + '】 【午餐:' + item.LUNCH + '】 【晚餐:' + item.DINNER + '】</label></li>';
                                            $("#data-food-list").append(_li_tmp);
                                        });

                                        _this_page_count = data.count;
                                        $("#count_num_food").text(data.total);
                                        $("#p_page_str").text("第" + _this_page + "页/共" + _this_page_count + "页");
                                        $("#btnFindFood").removeAttr("disabled")
                                    }, "json");
                            }
                        });
                    </script>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
